package FileControl.Source;

import java.io.File;

import FileControl.FileControl;

public class SyncThread extends KillableThread {

	private File source,dest;
	private boolean result;

	public SyncThread(File source, File dest) {
		this.source = source;
		this.dest = dest;
	}
	
	public void run() {
		this.hasStarted = true;
		result = FileControl.sync(source,dest);
		this.finished = true;
	}
	
	public boolean getResult() {
		return result;
	}
}
